#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
****************************************************
Project:python
Filename: ny_old_xiangcaohui.py
Author:银河
Create: 2025/3/1 下午1:51 
Notes:
cron: 30 8,11,16 * * *
***************************************************
'''
print('测试')
#
# import requests
#
#
# url = 'http://yh.xuenn.cn/api/ny/testold/'
#
#
# res = requests.get(url = url).json()
# print(res)
# if res['code'] == 200:
#     data = {
#         "title":"香草灰新领取记录",
#         "content":str(res['msg'])
#     }
#     requests.post(url="http://yh.xuenn.cn/api/weixin/",data=data)
#     print('微信推送成功')
# elif res['code'] == 201:
#     print('暂无领取信息')
#
# else:
#     data = {
#         "title": "系统错误",
#         "content": '系统错误,请今天后台查看'
#     }
#     requests.post(url="http://yh.xuenn.cn/api/weixin/", data=data)
#     print('系统错误，推送成功')